[POWERPC] Take all secondary processors offline after they are enumerated
authorJimi Xenidis <jimix@watson.ibm.com>
Tue, 22 Aug 2006 15:16:01 +0000 (11:16 -0400)
committerJimi Xenidis <jimix@watson.ibm.com>
Tue, 22 Aug 2006 15:16:01 +0000 (11:16 -0400)
Xen assumes that an online CPU is a schedualable CPU, but we just are
not there yet. Remove this fragment when scheduling processors
actually works.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
xen/arch/powerpc/setup.c

index cdc2173229ef127a7559e2e7b173ee2bf0f6ef5a..15398309f371adb13e5c942aabe5d93993e6b64e 100644 (file)
@@ -181,6 +181,21 @@ static void __init start_of_day(void)
 
     percpu_free_unused_areas();
 
+    {
+        /* FIXME: Xen assumes that an online CPU is a schedualable
+         * CPU, but we just are not there yet. Remove this fragment when
+         * scheduling processors actually works. */
+        int cpuid;
+
+        printk("WARNING!: Taking all secondary CPUs offline\n");
+
+        for_each_online_cpu(cpuid) {
+            if (cpuid == 0)
+                continue;
+            cpu_clear(cpuid, cpu_online_map);
+        }
+    }
+
     initialize_keytable();
     /* Register another key that will allow for the the Harware Probe
      * to be contacted, this works with RiscWatch probes and should